/**
 * @file 处理token
 */

import Cookies from 'js-cookie'
import conf from '../config'

const TokenName = conf.key.token

export function getToken() {
  return Cookies.get(TokenName)
}

export function setToken(token) {
  return Cookies.set(TokenName, token)
}

export function removeToken() {
  return Cookies.remove(TokenName)
}
